package com.group9.handinhand.service.so;

import com.group9.handinhand.dao.model.UserTag;
/**
 * Class for service of user tag
 * @author Egeid
 *
 */
public class UserTagSO extends AbstractBaseSO {
	
    private TagSO tag;
	private UserSO user;
	/**
	 * converts to user tag model object
	 * @return
	 */
	public UserTag convertToModelObject() {
		UserTag model = (UserTag) convert(new UserTag());
		model.setUser(this.user.convertToModelObject());
		model.setTag(this.tag.convertToModelObject());
		return model;
	}

	public TagSO getTag() {
		return tag;
	}

	public void setTag(TagSO tag) {
		this.tag = tag;
	}

	public UserSO getUser() {
		return user;
	}

	public void setUser(UserSO user) {
		this.user = user;
	}

	@Override
	public String toString() {
		return "UserTagSO [tag=" + tag + ", user=" + user + "]";
	}
	
	
}
